package com.yuyou.fn.tradingservice.service;

import com.yuyou.fn.tradingservice.entity.ServiceCartItem;
import com.github.wens.framework.service.ISuperService;
import com.yuyou.fn.tradingservice.entity.ServiceProduct;

import java.util.List;

/**
 *
 * ServiceCartItem 表数据服务层接口
 *
 */
public interface IServiceCartItemService extends ISuperService<ServiceCartItem,Long> {

    void addToCartItem(ServiceProduct product, Long cartId, int quantity);

    void delServiceCartOrNot(Integer type);

    List<ServiceCartItem> getAllCartItems(Integer type);

    void addRentToCartItem(ServiceProduct product, Long cartId, String startDate, String endDate, String startTime, String endTime);

    void updateCartItem(Long cartItemId, int quantity);
}